<div ng-controller="DictListCtl">
	<!-- header -->
	<div ng-init="init();" class="wrapper b-b">
    	<h3 class="font-thin m-n ng-binding">{{tree.get_selected_branch().label}}-分类的字典</h3>
  	</div>
	<!-- / header -->

	

	<!-- list -->
	<table st-table="rowCollectionBasic" class="table table-bordered table-striped">
      <thead>
      <tr>
        <th>名称</th>
        <th>值</th>
        <th>分组</th>
        <th>添加时间</th>
        <th width="50"></th>
      </tr>
      </thead>
      <tbody>
      <tr ng-repeat="dict in dicts">
      
        <td>{{dict.name}}</td>
        <td>{{dict.code}}</td>
        <td>{{dict.group.name}}</td>
        <td>{{dict.createDate}}</td>
        <td>
          <button type="button" ng-click="removeRow(dict.id)" class="btn btn-xs btn-default">
            <i class="fa fa-times">
            </i>
          </button>
        </td>
      </tr>
      <tr ng-if="grouptId.length==32">
      	<td colspan="2"><input placeholder="字典名称" type="text" class="form-control" ng-model="dict.name"></td>
        <td colspan="2"> 
        	<input type="text" placeholder="字典编码" class="form-control" ng-model="dict.code">
        </td>
        <td>
          <button type="button" ng-click="add()" class="btn btn-xs btn-default">
            <i class="fa icon-plus">
            </i>
          </button>
        </td>
      </tr>
      </tbody>
    </table>
	<!-- / list -->
</div>